//-----------------------------------------------------------------------
// <copyright file="ResponsibleBase.cs" company="Pyramid Consulting">
//     Copyright (c) Pyramid Consulting. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
	
using System;
using System.Data;
using System.ComponentModel;
using System.Collections;

namespace MIMS.WRS.Entities
{
	[Serializable]
	public class ShoppingCustomerOrder
	{
		
		#region Variable Declarations
		private int	shoppingOrderId = 0;
		private int	id = 0;
		private int	customerID = 0;
		private DateTime orderDate = new DateTime(1900,1,1,0,0,0,0);
		private string	companyName = string.Empty;
		private string	title = string.Empty;
		private string	familyName = string.Empty;
		private string	givenName = string.Empty;
		private string	streetAddress = string.Empty;
		private string	city = string.Empty;
		private string	state = string.Empty;
		private string	zipCode = string.Empty;
		private string	country = string.Empty;
		private string	emailAddress = string.Empty;
		private string contPointDescription = string.Empty;
		private string phoneNumber = string.Empty;
		private int				userId = 0;
		private int				qty20 = 0;
		private int				qty40 = 0;
		private int				qty40HC = 0;
		private bool			orderType = true;//1: for a full container of goods all selected from the IDS ; 0 : Forms part of a existing production order 
		private string				orderNo = string.Empty;
		private decimal				halfPalletSpaces = 0;
		private decimal				filledVolume = 0;
		private int destinationCountryId = 0;

		#endregion
		
		#region Constructors
		public ShoppingCustomerOrder() {}
		
		public ShoppingCustomerOrder (	int	shoppingOrderId , int id, int	customerID ,DateTime orderDate ,
			string	companyName ,
			string	title ,
			string	familyName ,
			string	givenName ,
			string	streetAddress ,
			string	city ,
			string	state ,
			string	zipCode ,
			string	country ,
			string	emailAddress ,
			int userId,int qty20,
			int qty40,int qty40HC,
			bool orderType,
			string orderNo,decimal halfPalletSpaces,
			decimal filledVolume,
			int destinationCountryId,
			string contPointDescription,
			string phoneNumber)
		
		{
			this.shoppingOrderId = shoppingOrderId;
			this.id = id;
			this.customerID =customerID;
			this.orderDate = orderDate;
			this.companyName = companyName;
			this.title = title;
				this.familyName = familyName;
				this.givenName = givenName;
				this.streetAddress = streetAddress;
				this.city = city;
				this.state = state;
				this.zipCode = zipCode;
			this.country = country;
			this.emailAddress = emailAddress;
			this.userId = userId;
			this.qty20 = qty20;
			this.qty40 = qty40;
			this.qty40HC = qty40HC;
			this.orderType = orderType;
			this.orderNo = orderNo;
			this.halfPalletSpaces = halfPalletSpaces;
			this.filledVolume = filledVolume;
			this.destinationCountryId=destinationCountryId;
			this.contPointDescription = contPointDescription;
			this.phoneNumber = phoneNumber;
		}
		#endregion
		
		#region Properties	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is int</value>
		public int ShoppingOrderId
		{
			get { return shoppingOrderId; }
			set { shoppingOrderId = value; }
		}
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is int</value>
		public int Id
		{
			get { return id; }
			set { id = value; }
		}

		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is int</value>
		public int CustomerID
		{
			get { return customerID; }
			set { customerID = value; }
		}

		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is datetime</value>
		public DateTime OrderDate
		{
			get { return orderDate; }
			set { orderDate = value; }
		}

		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string CompanyName
		{
			get { return companyName; }
			set { companyName = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string Title
		{
			get { return title; }
			set { title = value; }
		}
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string FamilyName
		{
			get { return familyName; }
			set { familyName = value; }
		}
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string GivenName
		{
			get { return givenName; }
			set { givenName = value; }
		}
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string StreetAddress
		{
			get { return streetAddress; }
			set { streetAddress = value; }
		}
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string City
		{
			get { return city; }
			set { city = value; }
		}
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string State
		{
			get { return state; }
			set { state = value; }
		}
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string ZipCode
		{
			get { return zipCode; }
			set { zipCode = value; }
		}
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string Country
		{
			get { return country; }
			set { country = value; }
		}
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string EmailAddress
		{
			get { return emailAddress; }
			set { emailAddress = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is int</value>
		public int UserId
		{
			get { return userId; }
			set { userId = value; }
		}
		
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is int</value>
		public int Qty20
		{
			get { return qty20; }
			set { qty20 = value; }
		}
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is int</value>
		public int Qty40
		{
			get { return qty40; }
			set { qty40 = value; }
		}
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is int</value>
		public int Qty40HC
		{
			get { return qty40HC; }
			set { qty40HC = value; }
		}

		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is int</value>
		public bool OrderType
		{
			get { return orderType; }
			set { orderType = value; }
		}

	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string OrderNo
		{
			get { return orderNo; }
			set { orderNo = value; }
		}
	
		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is decimal</value>
		public decimal HalfPalletSpaces
		{
			get { return halfPalletSpaces; }
			set { halfPalletSpaces = value; }
		}

		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is decimal</value>
		public decimal FilledVolume
		{
			get { return filledVolume; }
			set { filledVolume = value; }
		}
	


		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is int</value>
		public int DestinationCountryId
		{
			get { return destinationCountryId; }
			set { destinationCountryId = value; }
		}

		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string ContPointDescription
		{
			get { return contPointDescription; }
			set { contPointDescription = value; }
		}

		/// <summary>
		/// 	
		/// </summary>
		/// <value>This type is nvarchar</value>
		public string PhoneNumber
		{
			get { return phoneNumber; }
			set { phoneNumber = value; }
		}

		#endregion
	}//End Class
	
	public enum ShoppingCustomerOrderColumns
	{
		ShoppingOrderId,
		Id,
		CustomerID,
		OrderDate,
		CompanyName,
		Title,
		FamilyName,
		GivenName,
		StreetAddress,
		City,
		State,
		ZipCode,
		Country,
		EmailAddress,
		UserId,
		Qty20,
		Qty40,
		Qty40HC,
		OrderType,
		OrderNo,
		HalfPalletSpaces,
		FilledVolume,
		DestinationCountryId,
		ContPointDescription,
		PhoneNumber
			
	}//End enum
}